
# ScreenInterLock

*Simple image screen locker*

# WARNING

1. Please check if the environment variable XDG_SESSION_TYPE command: `echo $XDG_SESSION_TYPE`.
1. Install the required dependencies for your environment.
1. Make sure that there is no application with the same name.
1. Manual create image from screen monitor you size.
1. If the script works fine, but you are hindered by the messages add at the end `&>/dev/null`



## Depends:

```
imagemagick
```


### Wayland:

```
grim
swaylock
```

### X11:

```
scrot
i3lock
```



## Install:

### Manual:
```sh

git clone https://notabug.org/Imitatory/ScreenInterLock.git

cd ScreenInterLock

sudo mkdir /etc/screen_inter_lock/

sudo cp ./ScreenInterLock /usr/bin/ScreenInterLock

sudo cp ./default_images /etc/screen_inter_lock/

chmod +x /usr/bin/ScreenInterLock

```

### Package Manager:

1. Download package from release
1. Check signature
1. Install use package manager


## Uninstall:

### Manual:
```sh

sudo rm /usr/bin/ScreenInterLock
sudo rm -r /etc/screen_inter_lock

```

## Use:

```sh
ScreenInterLock <PathToPNGImage>

ScreenInterLock <PathToPNGImage> &>/dev/null
```
